package basic.com.liz.learn.design.chain;

public class ChainTest
{
    
    public static void main(String[] args)
    {
        MyHandler h1 = new MyHandler("测试影响");
        MyHandler h2 = new MyHandler("测试风水");
        MyHandler h3 = new MyHandler("测试tt");
        
        h1.setHandler(h2);
        h2.setHandler(h1);
        h1.operator();
    }
    
}
